PI Manager uses ocpn-plugins.xml to provide the required metadata and URLs for installation of plugins.
Ocpn-plugins.xml and associated metadata files are located in https://github.com/OpenCPN/plugins/
Batch files and scripts are available to help create this file ocpn-plugins.xml is created from the individual plugin metadata files located in the data directory.
Please review the Readme file.
In summary
The scripts require Python
Once you have build and deployed the 10-12 build environments to your Cloudsmith Repository, you should check the files in the repository and files, and then get the xml's into the Beta Catalog. For Example: https://cloudsmith.io/~mauro-calvi/repos/squiddio-manual/packages/?page=1 Download each of the recent xml files to a local directory, using the green button at the end and selecting “Save Link”.
Then from your local github directory,
git clone https://github.com/OpenCPN/plugins.git plugins
You want to clone this. https://github.com/OpenCPN/plugins Then checkout the Beta branch.
git checkout -b Beta git fetch
Then copy your metada files (after looking at some of them for errors) to the metadata directory. Then, reading the README run the python script to join the metadata files into one file call ocpn_plugin.xml Then run the URL check on the file to make sure all urls are good.
Then you can make a PR to the Beta branch to Dave (bdbcat) at OpenCPN/plugins
To enable the Alpha Channel you must make an entry in the ini / config file Also add how to turn on this feature by using the expert key
[PlugIns] catalogexpert=1
META-URL's are only accepted on the github.com/opencpn/plugins/Alpha Branch.
git clone https://github.com/[GitUser]/OpenCPN/plugins.gitgit checkout Alphagit checkout -b [YourName]-alpha git checkout Alpha [GitUser]/plugins/Alpha/metadata alongside the other Plugin Dev xml files. [GitUser]/plugins/Alpha/metadata/meta-url-alpha-seandepagnier-rgleason.xml<?xml version="1.0" encoding="UTF-8"?>
<plugin version="1">
<name> Sean Depagnier Alpha Plugins meta-url </name>
<version> 1.0 </version>
<summary> meta-url to Sean's Alpha Plugins by rgleason </summary>
<meta-url> https://raw.githubusercontent.com/rgleason/plugins/rg-alpha/ocpn-plugins.xml </meta-url>
</plugin>
python tools/ocpn-metadata generate –force –userdir metadata –destfile ocpn-plugins.xml Alpha branch up to your remote repository, and then push it to 'opencpn/plugins/Alpha'.[github user]/plugins branch:[YourName]-alpha github.com/rgleason/OpenCPN/plugins/rg-alpha github.com/rgleason/OpenCPN/plugins/rg-alpha/metadata ocpn-plugins.xml file with python tools/ocpn-metadata generate –force –userdir metadata –destfile ocpn-plugins.xml Alpha branch to link to, so that you can test some plugins in the current Developer's version of Opencpn. #19 Pull Request from opencpn/plugins/rgleason:rg-alpha to opencpn/plugins:Alpha
Also here is another example with squiddio